<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

Route::resource('api/v1/manager','api/v1.manager');

//Route::resource('api/v1/manager.state','api/v1.state');

Route::post('api/v1/manager/login','api/v1.manager/login');

Route::put('api/v1/manager/:id/role','api/v1.manager/role');

Route::resource('api/v1/rights','api/v1.rights');

Route::resource('api/v1/menus','api/v1.menus');

Route::resource('api/v1/roles','api/v1.roles');

Route::put('api/v1/roles/:roleId/rights','api/v1.roles/rights');

Route::delete('api/v1/roles/:roleId/rights/:rightId','api/v1.rights/delete');

Route::resource('api/v1/categories','api/v1.categories');

return [

];
